FROM adoptopenjdk/openjdk8-openj9:alpine-slim

MAINTAINER danshou fan5487464@foxmail.com

ADD /target/*-boot.jar latte-hj-server.jar

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 8080

ENTRYPOINT java -Xmn512m -Xms1048m -Xmx1048m -XX:MaxMetaspaceSize=128m -XX:MetaspaceSize=128m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/logs/latte-server.dump -jar  /latte-hj-server.jar
